var Imp = JavaImporter(
                    Packages.java.lang,
                    Packages.java.io,
                    Packages.com.hz.actor,
                    Packages.com.hz.main,
                    Packages.com.hz.map,
                    Packages.com.hz.ui,
                    Packages.com.hz.core,
                    Packages.com.hz.common,
                    Packages.com.hz.net,
                    Packages.com.google.gson,
                    Packages.java.util.concurrent
                            );

with(Imp){
    // cmd.alert(_args.get("members").size());
    // var loginUrl = MsgHandler.getSocketLoginUrl();
    // loginUrl = loginUrl.substring("socket://".length);
    // var urlArr = loginUrl.split(":");
    // var host = urlArr[0];
    // var port = parseInt(urlArr[1]);

    // var loginToken = cmd.getLoginToken(_args.get("accountNumber"), _args.get("password"));
    // cmd.waitAlert("是否继续?","key=" + loginToken.key + ",sessionId =" + loginToken.sessionId);
    // cmd.run(function(){
    //     GameWorld.ukey = loginToken.key;
    //     GameWorld.sessionID = loginToken.sessionId;
    //     var server = ServerInfo.createConnectInfo("","socket://shijie139.good321.net:10000");
    //     UIAction.doPlayerListMsg(null, server, true);
    // });
   


    
    // cmd.delay(5000);
    // return;

    
    cmd.doLogin(_args.get("accountNumber"), _args.get("password"), _args.get("serverId"), _args.get("roleId"));
    if(_args.get("master") == 1){
        cmd.openAutoAccept();
        cmd.waitJoinTeam(_args.get("members"));
        cmd.closeAutoAccept();
    }else{
        cmd.joinTeam(_args.get("masterId"));
    }
    cmd.alert("登陆,组队成功!");
    cmd.prompt("登陆完成");

}